<span style="display: none;"><fb:editor action=""></fb:editor></span>
<div class="sheets index">
<div id="featured_sheets" class="wide_box">
<h2>Browse <?php echo $default_product_plural; ?></h2>
<ul>
<?php
// Show the Browse Products links
foreach ($browse_products as $p):
	echo "<li>&#187; ";
	$details_url = $app_root_url . 'facebook_catalogs/details/' . $product_model_name . '/' . $p[$product_model_name]['id'];
	echo '<a href="' . $details_url . '">' . $p[$product_model_name]['title'] . '</a>';
	echo "</li>";
endforeach;
?>
</ul>


<h2>About This Application</h2>
<div class="box_content">
Customize this content by updating views/facebook/index.ctp
</div>

</div>



<div id="featured_sheets" class="narrow_box">
<h2>Most Popular <?php echo $default_product_plural; ?></h2>
<ul>
<?php
// Show the Popular Products
if($popular_products) {
	foreach ($popular_products as $p):
		echo "<li>&#187; ";
		$details_url = $app_root_url . 'facebook_catalogs/details/' . $product_model_name . '/' . $p[$product_model_name]['id'];
		echo '<a href="' . $details_url . '">' . $p[$product_model_name]['title'] . '</a>';
		echo "</li>";
	endforeach;
}
?>
</ul>

<?php
if($featured_product) {
	$details_url = $app_root_url . 'facebook_catalogs/details/' . $product_model_name . '/' . $featured_product[$product_model_name]['id'];
	?>
	<h2>Featured <?php echo $default_product_singular; ?></h2>
	<div style="text-align:center;">
	<?php
	echo '<a href="' . $details_url . '">';
	echo '<img src="' . $featured_product[$product_model_name]['thumbnail_image_src'] . '"/>';
	echo '</a>';
	echo "<br />";
	echo '<a href="' . $details_url . '">' . $featured_product[$product_model_name]['title'] . '</a>';
	?></div><?php
}
?>

<h2>These Friends are Using this App</h2>
<?php
$active_friends = 0;
// Show the Cheat Sheets the Current User has worked on
foreach ($friends as $friend):
	?>
	<fb:if-is-app-user uid="<?php echo $friend; ?>">
		<fb:profile-pic uid="<?php echo $friend; ?>" linked="true" size="q" />
	</fb:if-is-app-user>
<?php
endforeach;

?>
<br /><br />
<a href="<?php echo $app_root_url; ?>invites">Invite friends now</a>
</div>

<br style="clear:both;" />
<br />

